package com.qingke.easyjava.jdbc.command;

import com.qingke.easyjava.jdbc.pojo.Player;
import com.qingke.easyjava.jdbc.util.QingkeConsole;

public abstract class PlayerCommand implements Command {
    
    protected Player player;

    public PlayerCommand(Player player) {
        this.player = player;
    }
    
    public void execute() {
        if (player == null) {
            QingkeConsole.println("系统用户不存在!");
            return;
        }
        executePlayerCommand();
    }
    
    public abstract void executePlayerCommand();
}
